.class public Lcom/xingbook/park/activity/StartAct;
.super Lcom/xingbook/park/activity/BaseActivity;

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field a:Lcom/xingbook/c/n;

.field b:Landroid/os/Handler;

.field private c:Z

.field private d:Lcom/xingbook/ui/XbLayout;

.field private e:Lcom/xingbook/b/c;

.field private f:Z

.field private g:Z

.field private h:Z

.field private i:Z

.field private l:Landroid/graphics/Bitmap;

.field private m:Landroid/graphics/Bitmap;

.field private n:Landroid/graphics/Bitmap;


# direct methods
.method public constructor <init>()V
    .locals 1

    const/4 v0, 0x0

    invoke-direct {p0}, Lcom/xingbook/park/activity/BaseActivity;-><init>()V

    iput-boolean v0, p0, Lcom/xingbook/park/activity/StartAct;->c:Z

    iput-boolean v0, p0, Lcom/xingbook/park/activity/StartAct;->f:Z

    iput-boolean v0, p0, Lcom/xingbook/park/activity/StartAct;->g:Z

    iput-boolean v0, p0, Lcom/xingbook/park/activity/StartAct;->h:Z

    iput-boolean v0, p0, Lcom/xingbook/park/activity/StartAct;->i:Z

    new-instance v0, Lcom/xingbook/park/activity/bz;

    invoke-direct {v0, p0}, Lcom/xingbook/park/activity/bz;-><init>(Lcom/xingbook/park/activity/StartAct;)V

    iput-object v0, p0, Lcom/xingbook/park/activity/StartAct;->b:Landroid/os/Handler;

    return-void
.end method

.method private declared-synchronized a(II)V
    .locals 4

    const/4 v3, 0x2

    const/4 v2, 0x1

    monitor-enter p0

    if-ne p1, v2, :cond_0

    if-ne p2, v3, :cond_4

    const v0, 0x7f0800cd

    const/4 v1, 0x0

    :try_start_0
    invoke-static {p0, v0, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    :cond_0
    :goto_0
    if-ne p1, v2, :cond_1

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/xingbook/park/activity/StartAct;->g:Z

    :cond_1
    const/4 v0, 0x3

    if-ne p1, v0, :cond_2

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/xingbook/park/activity/StartAct;->h:Z

    :cond_2
    iget-boolean v0, p0, Lcom/xingbook/park/activity/StartAct;->i:Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-eqz v0, :cond_5

    :cond_3
    :goto_1
    monitor-exit p0

    return-void

    :cond_4
    if-ne p2, v2, :cond_0

    :try_start_1
    const-string v0, "\u68c0\u6d4b\u7528\u6237\u4fe1\u606f\u5931\u8d25"

    const/4 v1, 0x0

    invoke-static {p0, v0, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0

    :cond_5
    :try_start_2
    iget-boolean v0, p0, Lcom/xingbook/park/activity/StartAct;->g:Z

    if-eqz v0, :cond_a

    iget-boolean v0, p0, Lcom/xingbook/park/activity/StartAct;->f:Z

    if-eqz v0, :cond_a

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/xingbook/park/activity/StartAct;->i:Z

    iget-object v0, p0, Lcom/xingbook/park/activity/StartAct;->e:Lcom/xingbook/b/c;

    if-eqz v0, :cond_7

    iget-object v0, p0, Lcom/xingbook/park/activity/StartAct;->e:Lcom/xingbook/b/c;

    iget-boolean v0, v0, Lcom/xingbook/b/c;->l:Z

    if-eqz v0, :cond_7

    new-instance v0, Landroid/content/Intent;

    invoke-virtual {p0}, Lcom/xingbook/park/activity/StartAct;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    const-class v2, Lcom/xingbook/park/activity/UnbindAct;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v1, "com.xingbook.park.EXTRA_MID_AFTERUNBIND"

    iget-object v2, p0, Lcom/xingbook/park/activity/StartAct;->e:Lcom/xingbook/b/c;

    iget v2, v2, Lcom/xingbook/b/c;->g:I

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    const-string v1, "com.xingbook.park.EXTRA_UID_AFTERUNBIND"

    iget-object v2, p0, Lcom/xingbook/park/activity/StartAct;->e:Lcom/xingbook/b/c;

    iget-wide v2, v2, Lcom/xingbook/b/c;->m:J

    invoke-virtual {v0, v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;J)Landroid/content/Intent;

    :goto_2
    iget-object v1, p0, Lcom/xingbook/park/activity/StartAct;->e:Lcom/xingbook/b/c;

    if-eqz v1, :cond_6

    iget-object v1, p0, Lcom/xingbook/park/activity/StartAct;->e:Lcom/xingbook/b/c;

    iget v1, v1, Lcom/xingbook/b/c;->n:I

    if-lez v1, :cond_6

    iget-object v1, p0, Lcom/xingbook/park/activity/StartAct;->a:Lcom/xingbook/c/n;

    iget-object v2, p0, Lcom/xingbook/park/activity/StartAct;->e:Lcom/xingbook/b/c;

    iget v2, v2, Lcom/xingbook/b/c;->n:I

    iget-object v3, p0, Lcom/xingbook/park/activity/StartAct;->e:Lcom/xingbook/b/c;

    iget-object v3, v3, Lcom/xingbook/b/c;->o:Ljava/lang/String;

    invoke-virtual {v1, v2, v3}, Lcom/xingbook/c/n;->a(ILjava/lang/String;)V

    :cond_6
    const/high16 v1, 0x400

    invoke-virtual {v0, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    invoke-virtual {p0, v0}, Lcom/xingbook/park/activity/StartAct;->startActivity(Landroid/content/Intent;)V

    invoke-virtual {p0}, Lcom/xingbook/park/activity/StartAct;->finish()V

    const/high16 v0, 0x7f04

    const v1, 0x7f040001

    invoke-virtual {p0, v0, v1}, Lcom/xingbook/park/activity/StartAct;->overridePendingTransition(II)V

    goto :goto_1

    :cond_7
    iget-object v0, p0, Lcom/xingbook/park/activity/StartAct;->e:Lcom/xingbook/b/c;

    if-eqz v0, :cond_8

    iget-object v0, p0, Lcom/xingbook/park/activity/StartAct;->e:Lcom/xingbook/b/c;

    iget v0, v0, Lcom/xingbook/b/c;->b:I

    if-ne v0, v3, :cond_8

    new-instance v0, Landroid/content/Intent;

    invoke-virtual {p0}, Lcom/xingbook/park/activity/StartAct;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    const-class v2, Lcom/xingbook/park/activity/UpdateAct;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v1, "versionName"

    iget-object v2, p0, Lcom/xingbook/park/activity/StartAct;->e:Lcom/xingbook/b/c;

    iget-object v2, v2, Lcom/xingbook/b/c;->a:Lcom/xingbook/c/r;

    invoke-virtual {v2}, Lcom/xingbook/c/r;->b()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string v1, "packageUrl"

    iget-object v2, p0, Lcom/xingbook/park/activity/StartAct;->e:Lcom/xingbook/b/c;

    iget-object v2, v2, Lcom/xingbook/b/c;->c:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string v1, "info"

    iget-object v2, p0, Lcom/xingbook/park/activity/StartAct;->e:Lcom/xingbook/b/c;

    iget-object v2, v2, Lcom/xingbook/b/c;->f:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    goto :goto_2

    :cond_8
    invoke-static {}, Lcom/xingbook/c/n;->l()Lcom/xingbook/c/j;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/c/j;->o()Z

    move-result v0

    if-eqz v0, :cond_9

    new-instance v0, Landroid/content/Intent;

    invoke-virtual {p0}, Lcom/xingbook/park/activity/StartAct;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    const-class v2, Lcom/xingbook/park/activity/GuideAct;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    goto :goto_2

    :cond_9
    new-instance v0, Landroid/content/Intent;

    invoke-virtual {p0}, Lcom/xingbook/park/activity/StartAct;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    const-class v2, Lcom/xingbook/park/activity/HomeActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    goto/16 :goto_2

    :cond_a
    iget-boolean v0, p0, Lcom/xingbook/park/activity/StartAct;->h:Z

    if-eqz v0, :cond_3

    iget-boolean v0, p0, Lcom/xingbook/park/activity/StartAct;->f:Z

    if-eqz v0, :cond_3

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/xingbook/park/activity/StartAct;->i:Z

    new-instance v0, Landroid/content/Intent;

    invoke-virtual {p0}, Lcom/xingbook/park/activity/StartAct;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    const-class v2, Lcom/xingbook/park/activity/HomeActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const/high16 v1, 0x400

    invoke-virtual {v0, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    invoke-virtual {p0, v0}, Lcom/xingbook/park/activity/StartAct;->startActivity(Landroid/content/Intent;)V

    invoke-virtual {p0}, Lcom/xingbook/park/activity/StartAct;->finish()V

    const/high16 v0, 0x7f04

    const v1, 0x7f040001

    invoke-virtual {p0, v0, v1}, Lcom/xingbook/park/activity/StartAct;->overridePendingTransition(II)V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    goto/16 :goto_1
.end method

.method static synthetic a(Lcom/xingbook/park/activity/StartAct;II)V
    .locals 0

    invoke-direct {p0, p1, p2}, Lcom/xingbook/park/activity/StartAct;->a(II)V

    return-void
.end method


# virtual methods
.method public e()Ljava/lang/String;
    .locals 2

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "\u95ea\u5c4f"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public onCreate(Landroid/os/Bundle;)V
    .locals 4

    const/4 v3, 0x0

    invoke-super {p0, p1}, Lcom/xingbook/park/activity/BaseActivity;->onCreate(Landroid/os/Bundle;)V

    invoke-static {p0}, Lcom/xingbook/c/u;->a(Landroid/content/Context;)V

    const/16 v0, 0x6f

    invoke-static {v0}, Lcom/xingbook/c/c;->b(I)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/baidu/mobstat/StatService;->setAppKey(Ljava/lang/String;)V

    sget v1, Lcom/xingbook/c/c;->a:I

    invoke-static {v1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x1

    invoke-static {p0, v1, v2}, Lcom/baidu/mobstat/StatService;->setAppChannel(Landroid/content/Context;Ljava/lang/String;Z)V

    invoke-static {v3}, Lcom/a/a/g;->b(Z)V

    invoke-static {v3}, Lcom/a/a/g;->a(Z)V

    const-wide/32 v1, 0x927c0

    invoke-static {v1, v2}, Lcom/a/a/g;->a(J)V

    invoke-static {p0}, Lcom/a/a/g;->c(Landroid/content/Context;)V

    invoke-static {v0}, Lcom/a/a/a;->a(Ljava/lang/String;)V

    sget v0, Lcom/xingbook/c/c;->a:I

    invoke-static {v0}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/a/a/a;->b(Ljava/lang/String;)V

    new-instance v0, Lcom/xingbook/c/n;

    invoke-virtual {p0}, Lcom/xingbook/park/activity/StartAct;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/xingbook/c/n;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/park/activity/StartAct;->a:Lcom/xingbook/c/n;

    new-instance v0, Lcom/xingbook/ui/XbLayout;

    invoke-direct {v0, p0}, Lcom/xingbook/ui/XbLayout;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/park/activity/StartAct;->d:Lcom/xingbook/ui/XbLayout;

    iget-object v0, p0, Lcom/xingbook/park/activity/StartAct;->d:Lcom/xingbook/ui/XbLayout;

    const v1, -0xb95002

    invoke-virtual {v0, v1}, Lcom/xingbook/ui/XbLayout;->setBackgroundColor(I)V

    iget-object v0, p0, Lcom/xingbook/park/activity/StartAct;->d:Lcom/xingbook/ui/XbLayout;

    invoke-virtual {p0, v0}, Lcom/xingbook/park/activity/StartAct;->setContentView(Landroid/view/View;)V

    sget-object v0, Lcom/xingbook/c/o;->h:Ljava/util/concurrent/ExecutorService;

    invoke-interface {v0, p0}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V

    return-void
.end method

.method protected onDestroy()V
    .locals 1

    :try_start_0
    iget-object v0, p0, Lcom/xingbook/park/activity/StartAct;->n:Landroid/graphics/Bitmap;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/activity/StartAct;->n:Landroid/graphics/Bitmap;

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->isRecycled()Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/activity/StartAct;->n:Landroid/graphics/Bitmap;

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->recycle()V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/xingbook/park/activity/StartAct;->n:Landroid/graphics/Bitmap;

    :cond_0
    iget-object v0, p0, Lcom/xingbook/park/activity/StartAct;->l:Landroid/graphics/Bitmap;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/park/activity/StartAct;->l:Landroid/graphics/Bitmap;

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->isRecycled()Z

    move-result v0

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/park/activity/StartAct;->l:Landroid/graphics/Bitmap;

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->recycle()V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/xingbook/park/activity/StartAct;->l:Landroid/graphics/Bitmap;

    :cond_1
    iget-object v0, p0, Lcom/xingbook/park/activity/StartAct;->m:Landroid/graphics/Bitmap;

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/xingbook/park/activity/StartAct;->m:Landroid/graphics/Bitmap;

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->isRecycled()Z

    move-result v0

    if-nez v0, :cond_2

    iget-object v0, p0, Lcom/xingbook/park/activity/StartAct;->m:Landroid/graphics/Bitmap;

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->recycle()V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/xingbook/park/activity/StartAct;->m:Landroid/graphics/Bitmap;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :cond_2
    :goto_0
    invoke-super {p0}, Lcom/xingbook/park/activity/BaseActivity;->onDestroy()V

    return-void

    :catch_0
    move-exception v0

    goto :goto_0
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 1

    const/4 v0, 0x4

    if-ne p1, v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    invoke-super {p0, p1, p2}, Lcom/xingbook/park/activity/BaseActivity;->onKeyDown(ILandroid/view/KeyEvent;)Z

    move-result v0

    goto :goto_0
.end method

.method protected onPause()V
    .locals 1

    invoke-super {p0}, Lcom/xingbook/park/activity/BaseActivity;->onPause()V

    invoke-static {p0}, Lcom/baidu/mobstat/StatService;->onPause(Landroid/content/Context;)V

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/xingbook/park/activity/StartAct;->f:Z

    invoke-virtual {p0}, Lcom/xingbook/park/activity/StartAct;->j()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/a/a/g;->b(Ljava/lang/String;)V

    invoke-static {p0}, Lcom/a/a/g;->a(Landroid/content/Context;)V

    return-void
.end method

.method protected onResume()V
    .locals 2

    invoke-super {p0}, Lcom/xingbook/park/activity/BaseActivity;->onResume()V

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/xingbook/park/activity/StartAct;->f:Z

    iget-object v0, p0, Lcom/xingbook/park/activity/StartAct;->b:Landroid/os/Handler;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    invoke-static {p0}, Lcom/baidu/mobstat/StatService;->onResume(Landroid/content/Context;)V

    invoke-virtual {p0}, Lcom/xingbook/park/activity/StartAct;->j()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/a/a/g;->a(Ljava/lang/String;)V

    invoke-static {p0}, Lcom/a/a/g;->b(Landroid/content/Context;)V

    return-void
.end method

.method public onWindowFocusChanged(Z)V
    .locals 10

    const/4 v9, -0x1

    const/4 v8, 0x0

    if-eqz p1, :cond_0

    iget-boolean v0, p0, Lcom/xingbook/park/activity/StartAct;->c:Z

    if-nez v0, :cond_0

    invoke-virtual {p0}, Lcom/xingbook/park/activity/StartAct;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/park/activity/StartAct;->a:Lcom/xingbook/c/n;

    invoke-virtual {p0}, Lcom/xingbook/park/activity/StartAct;->getWindow()Landroid/view/Window;

    move-result-object v2

    invoke-virtual {v0}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

    move-result-object v3

    iget v3, v3, Landroid/content/res/Configuration;->orientation:I

    invoke-virtual {v1, v2, v3}, Lcom/xingbook/c/n;->a(Landroid/view/Window;I)V

    invoke-static {p0}, Lcom/xingbook/c/n;->b(Landroid/app/Activity;)F

    move-result v1

    invoke-static {p0}, Lcom/xingbook/c/n;->c(Landroid/app/Activity;)I

    move-result v2

    invoke-static {p0}, Lcom/xingbook/c/n;->d(Landroid/app/Activity;)I

    move-result v3

    const v4, 0x7f0202ef

    invoke-static {v0, v4}, Lcom/xingbook/c/n;->a(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v4

    iput-object v4, p0, Lcom/xingbook/park/activity/StartAct;->n:Landroid/graphics/Bitmap;

    new-instance v4, Landroid/widget/ImageView;

    invoke-direct {v4, p0}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iget-object v5, p0, Lcom/xingbook/park/activity/StartAct;->n:Landroid/graphics/Bitmap;

    invoke-virtual {v4, v5}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    sget-object v5, Landroid/widget/ImageView$ScaleType;->CENTER_CROP:Landroid/widget/ImageView$ScaleType;

    invoke-virtual {v4, v5}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    invoke-virtual {v4, v8, v8, v2, v3}, Landroid/widget/ImageView;->layout(IIII)V

    iget-object v5, p0, Lcom/xingbook/park/activity/StartAct;->d:Lcom/xingbook/ui/XbLayout;

    invoke-virtual {v5, v4}, Lcom/xingbook/ui/XbLayout;->addView(Landroid/view/View;)V

    new-instance v4, Landroid/widget/ImageView;

    invoke-direct {v4, p0}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    const/16 v5, 0x6f

    invoke-static {v5}, Lcom/xingbook/c/c;->a(I)I

    move-result v5

    invoke-static {v0, v5}, Lcom/xingbook/c/n;->a(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v5

    iput-object v5, p0, Lcom/xingbook/park/activity/StartAct;->m:Landroid/graphics/Bitmap;

    iget-object v5, p0, Lcom/xingbook/park/activity/StartAct;->m:Landroid/graphics/Bitmap;

    invoke-virtual {v5}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v5

    sub-int v5, v2, v5

    div-int/lit8 v5, v5, 0x2

    sub-int v6, v2, v5

    div-int/lit8 v3, v3, 0x2

    const/high16 v7, 0x42c8

    mul-float/2addr v7, v1

    invoke-static {v7}, Ljava/lang/Math;->round(F)I

    move-result v7

    sub-int/2addr v3, v7

    iget-object v7, p0, Lcom/xingbook/park/activity/StartAct;->m:Landroid/graphics/Bitmap;

    invoke-virtual {v7}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v7

    add-int/2addr v7, v3

    invoke-virtual {v4, v5, v3, v6, v7}, Landroid/widget/ImageView;->layout(IIII)V

    iget-object v5, p0, Lcom/xingbook/park/activity/StartAct;->m:Landroid/graphics/Bitmap;

    invoke-virtual {v4, v5}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    iget-object v5, p0, Lcom/xingbook/park/activity/StartAct;->d:Lcom/xingbook/ui/XbLayout;

    invoke-virtual {v5, v4}, Lcom/xingbook/ui/XbLayout;->addView(Landroid/view/View;)V

    new-instance v4, Landroid/widget/ImageView;

    invoke-direct {v4, p0}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    const v5, 0x7f020208

    invoke-static {v0, v5}, Lcom/xingbook/c/n;->a(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/park/activity/StartAct;->l:Landroid/graphics/Bitmap;

    const/high16 v0, 0x4248

    mul-float/2addr v0, v1

    invoke-static {v0}, Ljava/lang/Math;->round(F)I

    move-result v0

    sub-int v0, v3, v0

    iget-object v1, p0, Lcom/xingbook/park/activity/StartAct;->l:Landroid/graphics/Bitmap;

    invoke-virtual {v1}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v1

    sub-int v1, v0, v1

    iget-object v3, p0, Lcom/xingbook/park/activity/StartAct;->l:Landroid/graphics/Bitmap;

    invoke-virtual {v3}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v3

    sub-int v3, v2, v3

    div-int/lit8 v3, v3, 0x2

    sub-int/2addr v2, v3

    invoke-virtual {v4, v3, v1, v2, v0}, Landroid/widget/ImageView;->layout(IIII)V

    iget-object v0, p0, Lcom/xingbook/park/activity/StartAct;->l:Landroid/graphics/Bitmap;

    invoke-virtual {v4, v0}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    iget-object v0, p0, Lcom/xingbook/park/activity/StartAct;->d:Lcom/xingbook/ui/XbLayout;

    invoke-virtual {v0, v4}, Lcom/xingbook/ui/XbLayout;->addView(Landroid/view/View;)V

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    sget v0, Lcom/xingbook/c/c;->a:I

    if-ne v0, v9, :cond_1

    const-string v0, "\u6d4b\u8bd5\u5ba2\u6237\u7aef\uff0c\u53ea\u9650\u4e8e\u516c\u53f8\u5185\u7f51\u4f7f\u7528\uff01"

    :goto_0
    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    :try_start_0
    invoke-virtual {p0}, Lcom/xingbook/park/activity/StartAct;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v0

    invoke-virtual {p0}, Lcom/xingbook/park/activity/StartAct;->getPackageName()Ljava/lang/String;

    move-result-object v2

    const/4 v3, 0x0

    invoke-virtual {v0, v2, v3}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;

    move-result-object v0

    const/16 v2, 0x20

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    move-result-object v2

    const/16 v3, 0x76

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v0, v0, Landroid/content/pm/PackageInfo;->versionName:Ljava/lang/String;

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
    :try_end_0
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    :goto_1
    new-instance v0, Lcom/xingbook/ui/ad;

    invoke-direct {v0, p0}, Lcom/xingbook/ui/ad;-><init>(Landroid/content/Context;)V

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/xingbook/ui/ad;->a:Ljava/lang/String;

    const/high16 v1, 0x4200

    invoke-static {p0}, Lcom/xingbook/c/n;->f(Landroid/app/Activity;)F

    move-result v2

    mul-float/2addr v1, v2

    iput v1, v0, Lcom/xingbook/ui/ad;->c:F

    iput v9, v0, Lcom/xingbook/ui/ad;->b:I

    const/16 v1, 0x11

    iput v1, v0, Lcom/xingbook/ui/ad;->d:I

    invoke-static {p0}, Lcom/xingbook/c/n;->d(Landroid/app/Activity;)I

    move-result v1

    int-to-float v1, v1

    const/high16 v2, 0x42a0

    invoke-static {p0}, Lcom/xingbook/c/n;->f(Landroid/app/Activity;)F

    move-result v3

    mul-float/2addr v2, v3

    sub-float/2addr v1, v2

    invoke-static {v1}, Ljava/lang/Math;->round(F)I

    move-result v1

    invoke-static {p0}, Lcom/xingbook/c/n;->c(Landroid/app/Activity;)I

    move-result v2

    invoke-static {p0}, Lcom/xingbook/c/n;->d(Landroid/app/Activity;)I

    move-result v3

    invoke-virtual {v0, v8, v1, v2, v3}, Lcom/xingbook/ui/ad;->layout(IIII)V

    iget-object v1, p0, Lcom/xingbook/park/activity/StartAct;->d:Lcom/xingbook/ui/XbLayout;

    invoke-virtual {v1, v0}, Lcom/xingbook/ui/XbLayout;->addView(Landroid/view/View;)V

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/xingbook/park/activity/StartAct;->c:Z

    :cond_0
    return-void

    :cond_1
    const-string v0, "\u00a92014 \u661f\u5b9d\u4e50\u56ed"

    goto :goto_0

    :catch_0
    move-exception v0

    goto :goto_1
.end method

.method public run()V
    .locals 9

    const/4 v8, 0x0

    const/4 v2, 0x0

    const/4 v1, 0x1

    iget-object v0, p0, Lcom/xingbook/park/activity/StartAct;->e:Lcom/xingbook/b/c;

    if-nez v0, :cond_0

    new-instance v0, Lcom/xingbook/b/c;

    invoke-direct {v0}, Lcom/xingbook/b/c;-><init>()V

    iput-object v0, p0, Lcom/xingbook/park/activity/StartAct;->e:Lcom/xingbook/b/c;

    :cond_0
    iget-object v0, p0, Lcom/xingbook/park/activity/StartAct;->b:Landroid/os/Handler;

    const/4 v3, 0x3

    const-wide/16 v4, 0x1b58

    invoke-virtual {v0, v3, v4, v5}, Landroid/os/Handler;->sendEmptyMessageDelayed(IJ)Z

    iget-object v0, p0, Lcom/xingbook/park/activity/StartAct;->e:Lcom/xingbook/b/c;

    invoke-virtual {v0}, Lcom/xingbook/b/c;->a()Lcom/xingbook/park/e/c;

    move-result-object v0

    if-eqz v0, :cond_5

    invoke-virtual {v0}, Lcom/xingbook/park/e/c;->e()I

    move-result v3

    const/16 v4, 0xc8

    if-ne v3, v4, :cond_5

    invoke-virtual {v0}, Lcom/xingbook/park/e/c;->a()I

    move-result v3

    if-nez v3, :cond_4

    invoke-static {}, Lcom/xingbook/c/n;->l()Lcom/xingbook/c/j;

    move-result-object v3

    invoke-virtual {v0}, Lcom/xingbook/park/e/c;->c()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v3, v0}, Lcom/xingbook/c/j;->b(Ljava/lang/String;)V

    invoke-static {}, Lcom/xingbook/c/n;->k()Lcom/xingbook/park/e/a;

    move-result-object v0

    const-string v4, "sid"

    invoke-virtual {v3}, Lcom/xingbook/c/j;->g()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v0, v4, v5}, Lcom/xingbook/park/e/a;->a(Ljava/lang/String;Ljava/lang/String;)V

    iget-object v0, p0, Lcom/xingbook/park/activity/StartAct;->e:Lcom/xingbook/b/c;

    iget-boolean v0, v0, Lcom/xingbook/b/c;->l:Z

    if-nez v0, :cond_2

    iget-object v0, p0, Lcom/xingbook/park/activity/StartAct;->e:Lcom/xingbook/b/c;

    iget v0, v0, Lcom/xingbook/b/c;->g:I

    invoke-virtual {v3}, Lcom/xingbook/c/j;->e()I

    move-result v4

    if-eq v0, v4, :cond_1

    iget-object v0, p0, Lcom/xingbook/park/activity/StartAct;->e:Lcom/xingbook/b/c;

    iget v0, v0, Lcom/xingbook/b/c;->g:I

    invoke-virtual {v3, v0}, Lcom/xingbook/c/j;->b(I)V

    invoke-static {}, Lcom/xingbook/c/n;->k()Lcom/xingbook/park/e/a;

    move-result-object v0

    const-string v4, "mid"

    iget-object v5, p0, Lcom/xingbook/park/activity/StartAct;->e:Lcom/xingbook/b/c;

    iget v5, v5, Lcom/xingbook/b/c;->g:I

    invoke-static {v5}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v0, v4, v5}, Lcom/xingbook/park/e/a;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_1
    iget-object v0, p0, Lcom/xingbook/park/activity/StartAct;->e:Lcom/xingbook/b/c;

    iget-wide v4, v0, Lcom/xingbook/b/c;->m:J

    invoke-virtual {v3}, Lcom/xingbook/c/j;->d()J

    move-result-wide v6

    cmp-long v0, v4, v6

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/xingbook/park/activity/StartAct;->e:Lcom/xingbook/b/c;

    iget-wide v4, v0, Lcom/xingbook/b/c;->m:J

    invoke-virtual {v3, v4, v5}, Lcom/xingbook/c/j;->b(J)V

    invoke-static {}, Lcom/xingbook/c/n;->k()Lcom/xingbook/park/e/a;

    move-result-object v0

    const-string v4, "uid"

    iget-object v5, p0, Lcom/xingbook/park/activity/StartAct;->e:Lcom/xingbook/b/c;

    iget-wide v5, v5, Lcom/xingbook/b/c;->m:J

    invoke-static {v5, v6}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v0, v4, v5}, Lcom/xingbook/park/e/a;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_2
    iget-object v0, p0, Lcom/xingbook/park/activity/StartAct;->e:Lcom/xingbook/b/c;

    iget v0, v0, Lcom/xingbook/b/c;->b:I

    if-ne v0, v1, :cond_7

    iget-object v0, p0, Lcom/xingbook/park/activity/StartAct;->e:Lcom/xingbook/b/c;

    iget-object v0, v0, Lcom/xingbook/b/c;->a:Lcom/xingbook/c/r;

    invoke-virtual {v0}, Lcom/xingbook/c/r;->e()J

    move-result-wide v4

    invoke-virtual {v3, v4, v5}, Lcom/xingbook/c/j;->a(J)V

    invoke-static {}, Lcom/xingbook/c/n;->k()Lcom/xingbook/park/e/a;

    move-result-object v0

    const-string v4, "ver"

    invoke-virtual {v3}, Lcom/xingbook/c/j;->m()Lcom/xingbook/c/r;

    move-result-object v5

    invoke-virtual {v5}, Lcom/xingbook/c/r;->g()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v0, v4, v5}, Lcom/xingbook/park/e/a;->a(Ljava/lang/String;Ljava/lang/String;)V

    move v0, v1

    :goto_0
    invoke-static {p0}, Lcom/xingbook/c/n;->a(Landroid/content/Context;)Lcom/xingbook/c/n;

    move-result-object v4

    iget-object v5, p0, Lcom/xingbook/park/activity/StartAct;->e:Lcom/xingbook/b/c;

    iget v5, v5, Lcom/xingbook/b/c;->i:I

    iput v5, v4, Lcom/xingbook/c/n;->c:I

    invoke-virtual {v3}, Lcom/xingbook/c/j;->n()I

    move-result v4

    sput v4, Lcom/xingbook/c/c;->O:I

    iget-object v4, p0, Lcom/xingbook/park/activity/StartAct;->e:Lcom/xingbook/b/c;

    iget v4, v4, Lcom/xingbook/b/c;->j:I

    sget v5, Lcom/xingbook/c/c;->O:I

    if-eq v5, v4, :cond_3

    invoke-virtual {v3, v4}, Lcom/xingbook/c/j;->c(I)V

    sput v4, Lcom/xingbook/c/c;->O:I

    :cond_3
    iget-object v3, p0, Lcom/xingbook/park/activity/StartAct;->a:Lcom/xingbook/c/n;

    iget-object v4, p0, Lcom/xingbook/park/activity/StartAct;->e:Lcom/xingbook/b/c;

    iget v4, v4, Lcom/xingbook/b/c;->k:I

    invoke-virtual {v3, v4}, Lcom/xingbook/c/n;->a(I)V

    invoke-virtual {p0}, Lcom/xingbook/park/activity/StartAct;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    invoke-static {v1, v3}, Lcom/xingbook/c/h;->a(ZLandroid/content/res/Resources;)Z

    invoke-virtual {p0}, Lcom/xingbook/park/activity/StartAct;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    invoke-static {v2, v3}, Lcom/xingbook/c/h;->a(ZLandroid/content/res/Resources;)Z

    move v3, v0

    move v0, v2

    :goto_1
    invoke-static {v3}, Lcom/xingbook/park/d/f;->a(Z)Z

    iget-object v3, p0, Lcom/xingbook/park/activity/StartAct;->a:Lcom/xingbook/c/n;

    invoke-virtual {v3}, Lcom/xingbook/c/n;->g()Lcom/xingbook/park/d/e;

    move-result-object v4

    sget v3, Lcom/xingbook/c/c;->b:I

    if-ne v3, v1, :cond_6

    move v3, v1

    :goto_2
    invoke-virtual {v4, v3, v8, v8}, Lcom/xingbook/park/d/e;->a(ZLjava/util/ArrayList;Lcom/xingbook/park/d/r;)V

    invoke-virtual {v4}, Lcom/xingbook/park/d/e;->b()V

    iget-object v3, p0, Lcom/xingbook/park/activity/StartAct;->b:Landroid/os/Handler;

    invoke-virtual {v3, v1, v0, v2}, Landroid/os/Handler;->obtainMessage(III)Landroid/os/Message;

    move-result-object v0

    invoke-virtual {v0}, Landroid/os/Message;->sendToTarget()V

    return-void

    :cond_4
    move v0, v1

    move v3, v2

    goto :goto_1

    :cond_5
    const/4 v0, 0x2

    move v3, v2

    goto :goto_1

    :cond_6
    move v3, v2

    goto :goto_2

    :cond_7
    move v0, v2

    goto :goto_0
.end method
